
PRJ_NAME       = "libfpga-tr700.so"
# PRJ_VERSION    = "1"
# PRJ_PATCHLEVEL = "0"
# PRJ_SUBLEVEL   = "0"


# default download.elf,download.dis,download.bin
OUTPUT_ELF	= 
OUTPUT_DIS	= 
OUTPUT_BIN	= 
ifeq ("$(CONFIG_PROTOCAL_TR600_SPI)", "y")
	OUTPUT_SO 	= libfpga-2016.so
	OUTPUT_A	= libfpga-2016.a
endif

ifeq ("$(CONFIG_PROTOCAL_TR700_SPI)", "y")
	OUTPUT_SO 	= libfpga-tr700.so
	OUTPUT_A	= libfpga-tr700.a
endif

ifeq ("$(CONFIG_PROTOCAL_TR700_USB)", "y")
	OUTPUT_SO 	= libfpga-tr700-usb.so
	OUTPUT_A	= libfpga-tr700-usb.a
endif

ifeq ("$(CONFIG_PROTOCAL_TR700_USB_TK)", "y")
	OUTPUT_SO 	= libfpga-tr700-usb-tk.so
	OUTPUT_A	= libfpga-tr700-usb-tk.a
endif
OUTPUT_DIR 	= lib



INCLUDE_DIR	+= 
ifeq ("$(CONFIG_USE_PTHREAD_FPGA_OTDR)", "y")
	LFLAGS		+= -lpthread
endif

#LDFLAGS		+= -lpthread -lm
#LFLAGS	+= -lm
LFLAGS += -lm --static
LIB_DIR +=
CFLAGS      +=  -O3 -g -fPIC
# CFLAGS      +=  -g -fPIC
